import type {
  CommonParams,
  CommonReturn,
  CommonReturnListItem
} from '../schema/all'

export type LicenseListItem = CommonReturnListItem<'/api/cert/query', 'get'>
export type SiteLicenseModel = CommonReturn<'/api/site/cert', 'get'>
export type SiteLicenseInfo = CommonReturn<
  '/api/site/cert',
  'get'
>['manual_cert']
export type SiteLicenseCname = CommonReturn<'/api/site/cert', 'get'>['cname']
export type AcmeCreateParams = CommonParams<'/api/acme-account', 'post'>
export type ApplyResult = CommonReturn<'/api/cert/obtain', 'post'>
